package com.xspace.android.imcommon.interfaces;

import android.os.Parcel;
import android.os.Parcelable;

import com.xspace.android.imcommon.entity.Friend;

import java.util.HashMap;

public class FriendMapAidl implements Parcelable {
	public HashMap<String, Friend> mapList;

	public FriendMapAidl(HashMap<String, Friend> respList) {
		super();
		this.mapList = respList;

	}

	public FriendMapAidl(Parcel in) {
		readFromParcel(in);

	}

	protected void readFromParcel(Parcel in) {
		mapList = (HashMap<String, Friend>) in.readSerializable();
	}

	@Override
	
	public void writeToParcel(Parcel parcel, int flags) {
		parcel.writeSerializable(mapList);
	}

	@Override
	public int describeContents() {
		return 0;
	}

	public static final Creator<FriendMapAidl> CREATOR = new Creator<FriendMapAidl>() {
		public FriendMapAidl createFromParcel(Parcel in) {
			return new FriendMapAidl(in);
		}

		public FriendMapAidl[] newArray(int size) {
			return new FriendMapAidl[size];
		}
	};
}
